src=mythread.cpp
bin=mythread.out

$(bin):$(src)
	g++ $< -o $@ -std=c++11 -lpthread

.PHONY:clean run
clean:
	@rm -f $(bin)
run:
	./$(bin)